package net.sunofbeach.blog.controller.admin;

import net.sunofbeach.blog.pojo.Category;
import net.sunofbeach.blog.response.ResponseResult;
import org.springframework.web.bind.annotation.*;

// 管理中心，分类api

@RestController
@RequestMapping("/admin/category")
public class CategoryAdminApi {
    // 添加分类
    @PostMapping
    public ResponseResult addCategory(@RequestBody Category category){
        return null;
    }

    @DeleteMapping("/{categoryID}")
    public ResponseResult deleteCategory(@PathVariable("categoryID") String categoryID){
        return null;
    }

    @PutMapping("/{categoryID}")
    public ResponseResult updateCategory(@PathVariable("categoryID") String categoryID, @RequestBody Category category){
        return null;
    }

    @GetMapping("{/categoryID}")
    public ResponseResult getCategory(@PathVariable("categoryID") String categoryID){
        return null;
    }

    @GetMapping("/list")
    public ResponseResult listCategory(@RequestParam("page") int page , @RequestParam("size") int size){
        return null;
    }

}
